<?php

/**
 * MyQEE 数组核心类
 *
 * @author	 jonwang(jonwang@myqee.com)
 * @category   MyQEE
 * @package	System
 * @subpackage Core
 * @copyright  Copyright (c) 2008-2011 myqee.com
 * @license	http://www.myqee.com/license.html
 */
class MyQEE_Arr extends ArrayIterator
{

    /**
     * 递归的过滤数组
     * @return array
     */
    public function xxs()
    {
        $data = $this->getArrayCopy();
        foreach ( $data as $k => &$v )
        {
            if ( is_array($v) )
            {
                $tmp_data = new Arr($v);
            }
            else
            {
                $tmp_data = new Str($v);
            }
            $v = $tmp_data->xss();
        }
    }

    public function is_empty()
    {
        return empty($this->data);
    }
}